/* Returns array with his weapons, Primary weapon is always the first entry */

_primaryWeapon = primaryWeapon player;
_weapons = weapons player;

_hitler = [_primaryWeapon];
{
	if (!(_primaryWeapon == _X) and (  ([_x, 0, primary_weapons] call fnc_search_array >= 0) or ([_x, 0, secondary_weapons] call fnc_search_array >= 0))) then {
		_hitler = _hitler + [_x];
	};
} forEach _weapons;

_hitler;

